import request from '@/utils/request'

export function listmrkHead(query) {
  return request({
    url: '/mrkHead2/list',
    method: 'get',
    params: query
  })
}

export function createmrkHead(data) {
  return request({
    url: '/mrkHead/create',
    method: 'post',
    data
  })
}

export function readmrkHead(data) {
  return request({
    url: '/mrkHead/get/' + data.id,
    method: 'get'
  })
}

export function updatemrkHead(data) {
  return request({
    url: '/mrkHead/update',
    method: 'post',
    data
  })
}

export function deletemrkHead(data) {
  return request({
    url: '/mrkHead/delete/' + data.fbillno,
    method: 'delete'
  })
}
